package com.zmm.weblog.admin.convert;

import com.zmm.weblog.admin.model.vo.article.FindArticleDetailRspVo;
import com.zmm.weblog.common.domain.dos.ArticleDo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ArticleDetailConvert {
    /**
     * 初始化 convert 实例
     */
    ArticleDetailConvert INSTANCE = Mappers.getMapper(ArticleDetailConvert.class);

    /**
     * 将 DO 转化为 VO
     * @param bean
     * @return
     */
    FindArticleDetailRspVo convertDO2VO(ArticleDo bean);

}